﻿using System;
using System.Web.UI;
using Portal.Data.Entity;
using Portal.Data.Webparts;

public partial class Webparts_Templates_truyen_RefByAuthor : WebpartControl
{
//    //lay 10 book cung tac gia
//    //chi tac dung khi dang view BOOK nao do
//    private const int Max = 10;
//    protected void Page_Load(object sender, EventArgs e)
//    {
//        if (!IsPostBack)
//        {
//            var id = Convert.ToInt32(Common.GetViewId());
//            if (id <= 0) return;
//            var book = Book.FindByPrimaryKey(id);
//            if (book == null) return;
//
//            Items.DataSource = Book.FindByAuthor(book.AuthorId, Max, id);
//            Items.DataBind();
//        }
//    }
}